<include file="Public/siteTopbar" />

<include file="Public/header" />




<link rel="stylesheet" href="__STATIC__/css/page.css" type="text/css">

<script src="__PUBLIC__/js/pc_common.js"></script>

<link rel="stylesheet" href="__STATIC__/css/jqzoom.css" type="text/css">

<link rel="stylesheet" href="__STATIC__/css/location.css" type="text/css"><!-- 收貨地址，物流運費 -->



<script src="__PUBLIC__/js/layer/layer.js"></script>



<link href="__STATIC__/css/cloud-zoom.css" rel="stylesheet" type="text/css" />

<script src="__STATIC__/js/cloud-zoom.1.0.2.js" type="text/javascript"></script>



<script type="text/javascript" src="__STATIC__/js/jquery.tinycarousel.min.js"></script>

<script type="text/javascript">

    $(function(){

        $('.cloud-zoom').attr('rel','adjustX:30');

    })

</script>







<div class="container" style="padding-top:10px; padding-bottom:10px; font-size:12px;">

        <a href="/" style="color:#000;">Home</a> >

        <foreach name="navigate_goods" key="k" item="v">

            <a  href="{:U('/Home/Goods/goodsList',array('id'=>$k))}" style="color:#000;">{$v}</a> >

        </foreach>

        <span>{$bi,$goods[goods_id]|goods_name_shift}</span>

   

   <div class="selectb">

   <select name="currency" title="Select Your Currency" onchange="set_exchange_rate(this.value)" style="float:right; margin-bottom:5px;">

<volist name="exchange_rate_list" id="v"  >

    <option value="{$v.id}"  <if condition="$Think.session.exchange_rate_id eq $v[id]">selected="selected"</if>>{$v.title}</option></volist>

    </select>

    </div>

</div>





<include file="goodsinfoclass" />






<include file="reviews" />

<include file="recommend" />



<script>



    $(document).ready()

    {

        ajax_price();

    }







function ajax_price(){







    $.ajax({

        type : "POST",

        url:"{:U('Home/Cart/ajaxAddCartNew')}",//+tab,

        data : $('#form').serialize(),// 你的formid

        dataType:'json',

        success: function(data){

			if(data.old_hl_price!="0.00")

			{

            	$('.goods_price_old').html('<b class="price_title" >List Price:</b><em class="price_content del_price">'+data.money_str+data.old_hl_price+'</em>');

            <if condition="$goods.market_price eq '0'" >$('.goods_price_old').hide();</if>
                $('.goods_price_old_box').show();

            $('.png_zk').show();
            <if condition="$goods.market_price eq '0'" >$('.png_zk').hide();</if>
            	$('.js_price').html('<b class="price_title" >You Save:</b><em class="price_content">'+data.money_str+data.js_price+' ('+data.js_bl+'%)</em>');

                $('.png_zk').html('<span>'+data.js_bl+'%</span>OFF<br >SHOP NOW');
//            	$('.js_bl').text(data.js_bl+'%');

			}
			else
            {

                $('.goods_price_old_box').hide();
                $('.png_zk').hide();
            }

            $('.goods_price_new').html('<b class="price_title" >Price:</b><em class="price_content bigprice"   >'+data.money_str+data.price+'</em>');



        }

    });

}







    function ajaxAddCart1(){

        $.ajax({

            type : "POST",

            url:"{:U('Home/Cart/ajaxAddCartNew')}"+"?submit=1",//+tab,

            data : $('#form').serialize(),// 你的formid

            dataType:'json',

            success: function(data){

                //window.location.href="{:U('Home/Cart/Cart')}";
                layer.confirm('Has been successfully added to the shopping cart, whether to go to the shopping cart to view?', {
                    btn: ['Clearing','Continue to buy'] //按钮
                    ,title:"Tips"
                }, function(){
                    // layer.msg('的确很重要', {icon: 1});
                    window.location.href="{:U('Home/Cart/Cart')}";
                    //.href = "/index.php?m=Home&c=Cart&a=Cart";
                }, function(){

                });

            }

        });

    }





</script>





<!--------收貨地址，物流運費-開始-------------->

<script src="__STATIC__/js/location.js"></script>

<!--------收貨地址，物流運費--結束-------------->



<script src="__PUBLIC__/js/jqueryUrlGet.js"></script><!--獲取get參數插件-->

<script> set_first_leader(); //設置推薦人 </script>



<!--------footer-開始-------------->

<include file="Public/footer" />

<!--------footer-結束-------------->

</body>

</html>

